﻿#region Usings

using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using Microsoft.Surface.Presentation.Controls;
using ScrumTable.UI.View.Controls;
using ScrumTable.UI.ViewModel;

#endregion

namespace ScrumTable.UI.View.WinTouch.CustomControl
{
    /// <summary>
    /// DropControl. Use this class for showing a dropping control
    /// </summary>
    public class ScrumTableScrollViewer : SurfaceScrollViewer
    {

        #region Declarations
        //--------------------------------------------------------------------
        // Declarations
        //--------------------------------------------------------------------
        #endregion

        #region Properties
        //--------------------------------------------------------------------
        // Properties
        //--------------------------------------------------------------------
     
        #endregion

        #region Constructors / Destructor
        //--------------------------------------------------------------------
        // Constructors / Destructor
        //--------------------------------------------------------------------

        #endregion




        #region Methods
 
        protected override void OnMouseWheel(MouseWheelEventArgs e)
        {
            //if no scrollbar is visble -> give the event to the next control (scrolling the parent container and the current element)
            if (ComputedVerticalScrollBarVisibility == Visibility.Visible || ComputedHorizontalScrollBarVisibility == Visibility.Visible)
            {
                base.OnMouseWheel(e);
            }
        }
        /*
        protected override void OnPreviewTouchDown(TouchEventArgs e)
        {
            //base.OnPreviewTouchDown(e);
        }*/

        protected override void OnGotTouchCapture(TouchEventArgs e)
        {
            ReleaseAllTouchCaptures();
        }

        protected override void OnTouchDown(TouchEventArgs e)
        {
            //no touch down event to the parent (click-select event does not work)
        }
        
        protected override void OnMouseDown(MouseButtonEventArgs e)
        {
            //no mouse down event to the parent (click-select event does not work)
        }

        #endregion


        #region Events

  
        #endregion
    }



    public class NoTouchScrollViewerScrollViewer : SurfaceScrollViewer
    {

        #region Declarations
        //--------------------------------------------------------------------
        // Declarations
        //--------------------------------------------------------------------
        #endregion

        #region Properties
        //--------------------------------------------------------------------
        // Properties
        //--------------------------------------------------------------------

        #endregion

        #region Constructors / Destructor
        //--------------------------------------------------------------------
        // Constructors / Destructor
        //--------------------------------------------------------------------

        #endregion




        #region Methods

        protected override void OnMouseWheel(MouseWheelEventArgs e)
        {
            
        }

        protected override void OnPreviewTouchDown(TouchEventArgs e)
        {
            
        }

        protected override void OnPreviewTouchUp(TouchEventArgs e)
        {
         
        }

        protected override void OnTouchMove(TouchEventArgs e)
        {
            
        }

        protected override void OnTouchEnter(TouchEventArgs e)
        {
            
        }

        protected override void OnTouchLeave(TouchEventArgs e)
        {
            
        }

        protected override void OnTouchUp(TouchEventArgs e)
        {
            
        }

        protected override void OnTouchDown(TouchEventArgs e)
        {
             
        }

        protected override void OnMouseDown(MouseButtonEventArgs e)
        {
          
        }

        #endregion


        #region Events


        #endregion
    }
}

